package org.chen.auth.service;

import cn.dev33.satoken.util.SaResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.chen.common.auth.dto.LoginRequest;
import org.chen.common.auth.dto.RegisterRequest;
import org.chen.common.auth.entity.User;
import org.chen.common.result.ResultVO;

import java.util.Map;

public interface UserService extends IService<User> {
    //登录
    ResultVO login(LoginRequest loginRequest);
    //登出
    ResultVO logout();

    Map<String, Object> getUserInfo(String token);

    String refreshToken(String token);

    ResultVO register(RegisterRequest registerRequest);

}
